// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-1-13

#ifndef __TRANS_TCPSOCKET_H_SERVER_SVR_MAIN__
#define __TRANS_TCPSOCKET_H_SERVER_SVR_MAIN__

#pragma once

#include <common/svr_base/net_socket.h>
#include <common/svr_base/base_buffer.h>

namespace JoyServer
{

class CJoyMainRoom;

class CJoyTransTCPSocket : public CJoySocket
{
public:
    DWORD   m_acceptedTick;
    CJoyMainRoom*   m_room;
    CJoyBuffer      m_partBuf;

    virtual void OnError(int err);
    virtual void OnRecv(CJoyTransmitData* recvData, const sockaddr_in& fromAddr);
public:
    CJoyTransTCPSocket();
    virtual ~CJoyTransTCPSocket();

};



} // namespace JoyServer

#endif  // __TRANS_TCPSOCKET_H_SERVER_SVR_MAIN__